﻿package  {
	import com.kerry.effect.PerlinDistort;
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.TimerEvent;
	import flash.net.URLRequest;
	import flash.utils.Timer;
	/**
	 * com.kerry.effect.PerlinDistort 类的演示文件
	 * @author PhoenixKerry（http://blog.sina.com.cn/yyy98）
	 */
	public class PerlinDistortDemo extends Sprite {
		public function PerlinDistortDemo() {
			var loader:Loader = new Loader();
			addChild(loader);
			loader.load(new URLRequest("../assets/lilies.jpg"));
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
		}
		
		private function onLoadComplete(e:Event):void {
			var loader:Loader = e.target.loader;
			var pDist:PerlinDistort = new PerlinDistort(loader, 20, 20);
		}
	}
}